package com.donquijote.spirng6.service;

import com.donquijote.spirng6.dao.UserDao;
import com.donquijote.spirng6.dao.VipDao;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-03 16:06
 */
public class UserService {

    private UserDao userDao;

    private VipDao vipDao;


    /**
     * 前三个字母必须是set
     * */
    public void setXxx(UserDao userDao){
        this.userDao = userDao;
    }

    public void setVipDao(VipDao vipDao) {
        this.vipDao = vipDao;
    }

    public void  saveUser(){
        userDao.insert();
    };

    public void setVIP(){
        vipDao.insert();
    }

}
